mui.init();
mui.plusReady(function() {
  plus.navigator.setStatusBarBackground('#F7F7F7');
})
var mimiva = new Vue({
  el: '#app',
  components: {
    tabBar: miva.tabBar,
    searchEntry: miva.searchEntry,
    swiperItem: miva.swiperItem,
    frameWorkBook: miva.frameWorkBook,
  },
  data: {
    binnerData: [],
    bookList: [],
  },
  created: function() {
    var _this = this;
    // 获取轮播
    axios.get(mivaUtils.baseUri + '/Mobile/Index/adList', {}).then(function(res) {
      _this.binnerData = res.data.result.adList;
    })
    // 获取书籍列表
    axios.get(mivaUtils.baseUri + '/Mobile/Index/index', {}).then(function(res) {
      _this.bookList = res.data.result;
      // console.log(_this.bookList);
    })
  },
  mounted: function() {
    var _this = this;

  },
  watch: {},
  methods: {},
})
